package mediator;

/**
 * 3.抽象组件
 */
public abstract class Component {
    private Mediator mediator;

    public Component(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void exec(String key);

    public Mediator getMediator(){
        return this.mediator;
    }
}
